package com.yj.springbootevent.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.ExceptionHandler;

@Component
@Slf4j
@Order(2)
public class MyListener2 {



//    @EventListener(condition = "#myApplicationEvent.userDto.id=1")
    public void listener(){
        System.out.println("111111111111");
    }

}
